package com.wsc.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class User {
  @TableId(value = "uid",type = IdType.AUTO)
  private Integer uid;
  @TableField("name")
  private String name;
  @TableField("sex")
  private String sex;
  @TableField("phone")
  private String phone;
  @TableField("idcard")
  private String idcard;
  @TableField("site")
  private String site;
  @TableField("remarks")
  private String remarks;
  @DateTimeFormat(pattern = "yyyy-MM-dd")
  @JsonFormat(pattern = "yyyy-MM-dd")
  @TableField("entry")
  private String entry;
  @DateTimeFormat(pattern = "yyyy-MM-dd")
  @JsonFormat(pattern = "yyyy-MM-dd")
  @TableField("dimission")
  private String dimission;
  @TableField("head")
  private String head;
  @TableField("username")
  private String username;
  @TableField("password")
  private String password;
  @TableField("state")
  private Integer state;
  @TableField("rid")
  private Integer rid;

}
